<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
   
    <ui:composition template="/views/_template.xhtml">
    	<ui:define name="corpo">
            <div >
                <h:outputLabel value="Incluir usuario" style="border-bottom: 3px solid #C22; text-align: left; font-size: 18px; width: 900px;" />    
            </div>
            <h:form>

                <h:dataTable styleClass="dadosForm" style="border: 1px solid #DDDDDD;">
                    <h:column>
                    <f:facet name="header">
                        <h:outputLabel style="margin: 5px; text-align: left" for="nomeConta" value="Nome do usurio" />
                    </f:facet>
                    <f:facet name="footer">
                        <p:inputText id="nomeConta" style="width: 600px;" value="#{perfilBean.perfil.descricao}" />
                    </f:facet>
                    </h:column>

                    <h:column>
                        <f:facet name="header">
                            <h:outputLabel style="margin: 5px; text-align: left;" value="Tipo de perfil" />
                        </f:facet>
                        <f:facet name="footer">
                            <p:selectOneMenu value="#{perfilBean.perfil.tipoPerfil}" >
                                <f:selectItem itemLabel="Selecione o tipo de perfil" itemValue=""  noSelectionOption="true"/>
                                <f:selectItems value="#{perfilBean.tipoPerfis}" />
                            </p:selectOneMenu>
                        </f:facet>
                    </h:column >
                    <f:facet name="footer" >
                        <h:commandButton value="Gravar" action="#{perfilBean.gravar()}" />
                        <h:commandButton value="Voltar" action="perfil" />
                    </f:facet>
                </h:dataTable>
            </h:form>
        </ui:define>
    </ui:composition>
</html>

